Integrand size = 25, antiderivative size = 72 \[ \int \frac {x^2 \left (d+e x^3\right )}{a+b x^3+c x^6} \, dx=-\frac {(2 c d-b e) \text {arctanh}\left (\frac {b+2 c x^3}{\sqrt {b^2-4 a c}}\right )}{3 c \sqrt {b^2-4 a c}}+\frac {e \log \left (a+b x^3+c x^6\right )}{6 c} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1482, 648, 632, 212, 642} \[ \int \frac {x^2 \left (d+e x^3\right )}{a+b x^3+c x^6} \, dx=\frac {e \log \left (a+b x^3+c x^6\right )}{6 c}-\frac {(2 c d-b e) \text {arctanh}\left (\frac {b+2 c x^3}{\sqrt {b^2-4 a c}}\right )}{3 c \sqrt {b^2-4 a c}} \]
[In]
[Out]
Rule 212
Rule 632
Rule 642
Rule 648
Rule 1482
Rubi steps \begin{align*} \text {integral}& = \frac {1}{3} \text {Subst}\left (\int \frac {d+e x}{a+b x+c x^2} \, dx,x,x^3\right ) \\ & = \frac {e \text {Subst}\left (\int \frac {b+2 c x}{a+b x+c x^2} \, dx,x,x^3\right )}{6 c}+\frac {(2 c d-b e) \text {Subst}\left (\int \frac {1}{a+b x+c x^2} \, dx,x,x^3\right )}{6 c} \\ & = \frac {e \log \left (a+b x^3+c x^6\right )}{6 c}-\frac {(2 c d-b e) \text {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c x^3\right )}{3 c} \\ & = -\frac {(2 c d-b e) \tanh ^{-1}\left (\frac {b+2 c x^3}{\sqrt {b^2-4 a c}}\right )}{3 c \sqrt {b^2-4 a c}}+\frac {e \log \left (a+b x^3+c x^6\right )}{6 c} \\ \end{align*}
Time = 0.04 (sec) , antiderivative size = 71, normalized size of antiderivative = 0.99 \[ \int \frac {x^2 \left (d+e x^3\right )}{a+b x^3+c x^6} \, dx=\frac {-\frac {2 (-2 c d+b e) \arctan \left (\frac {b+2 c x^3}{\sqrt {-b^2+4 a c}}\right )}{\sqrt {-b^2+4 a c}}+e \log \left (a+b x^3+c x^6\right )}{6 c} \]
[In]
[Out]
Time = 0.12 (sec) , antiderivative size = 66, normalized size of antiderivative = 0.92
method | result | size |
default | \(\frac {e \ln \left (c \,x^{6}+b \,x^{3}+a \right )}{6 c}+\frac {2 \left (d -\frac {b e}{2 c}\right ) \arctan \left (\frac {2 c \,x^{3}+b}{\sqrt {4 a c -b^{2}}}\right )}{3 \sqrt {4 a c -b^{2}}}\) | \(66\) |
risch | \(\frac {2 \ln \left (\left (-4 a b c e +8 a \,c^{2} d +b^{3} e -2 b^{2} c d +\sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, b \right ) x^{3}+2 \sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, a \right ) a e}{3 \left (4 a c -b^{2}\right )}-\frac {\ln \left (\left (-4 a b c e +8 a \,c^{2} d +b^{3} e -2 b^{2} c d +\sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, b \right ) x^{3}+2 \sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, a \right ) b^{2} e}{6 c \left (4 a c -b^{2}\right )}+\frac {\ln \left (\left (-4 a b c e +8 a \,c^{2} d +b^{3} e -2 b^{2} c d +\sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, b \right ) x^{3}+2 \sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, a \right ) \sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}}{6 c \left (4 a c -b^{2}\right )}+\frac {2 \ln \left (\left (-4 a b c e +8 a \,c^{2} d +b^{3} e -2 b^{2} c d -\sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, b \right ) x^{3}-2 \sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, a \right ) a e}{3 \left (4 a c -b^{2}\right )}-\frac {\ln \left (\left (-4 a b c e +8 a \,c^{2} d +b^{3} e -2 b^{2} c d -\sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, b \right ) x^{3}-2 \sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, a \right ) b^{2} e}{6 c \left (4 a c -b^{2}\right )}-\frac {\ln \left (\left (-4 a b c e +8 a \,c^{2} d +b^{3} e -2 b^{2} c d -\sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, b \right ) x^{3}-2 \sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}\, a \right ) \sqrt {-\left (b e -2 c d \right )^{2} \left (4 a c -b^{2}\right )}}{6 c \left (4 a c -b^{2}\right )}\) | \(671\) |
[In]
[Out]
none
Time = 0.33 (sec) , antiderivative size = 216, normalized size of antiderivative = 3.00 \[ \int \frac {x^2 \left (d+e x^3\right )}{a+b x^3+c x^6} \, dx=\left [\frac {{\left (b^{2} - 4 \, a c\right )} e \log \left (c x^{6} + b x^{3} + a\right ) - \sqrt {b^{2} - 4 \, a c} {\left (2 \, c d - b e\right )} \log \left (\frac {2 \, c^{2} x^{6} + 2 \, b c x^{3} + b^{2} - 2 \, a c + {\left (2 \, c x^{3} + b\right )} \sqrt {b^{2} - 4 \, a c}}{c x^{6} + b x^{3} + a}\right )}{6 \, {\left (b^{2} c - 4 \, a c^{2}\right )}}, \frac {{\left (b^{2} - 4 \, a c\right )} e \log \left (c x^{6} + b x^{3} + a\right ) - 2 \, \sqrt {-b^{2} + 4 \, a c} {\left (2 \, c d - b e\right )} \arctan \left (-\frac {{\left (2 \, c x^{3} + b\right )} \sqrt {-b^{2} + 4 \, a c}}{b^{2} - 4 \, a c}\right )}{6 \, {\left (b^{2} c - 4 \, a c^{2}\right )}}\right ] \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 287 vs. \(2 (65) = 130\).
Time = 10.30 (sec) , antiderivative size = 287, normalized size of antiderivative = 3.99 \[ \int \frac {x^2 \left (d+e x^3\right )}{a+b x^3+c x^6} \, dx=\left (\frac {e}{6 c} - \frac {\sqrt {- 4 a c + b^{2}} \left (b e - 2 c d\right )}{6 c \left (4 a c - b^{2}\right )}\right ) \log {\left (x^{3} + \frac {- 12 a c \left (\frac {e}{6 c} - \frac {\sqrt {- 4 a c + b^{2}} \left (b e - 2 c d\right )}{6 c \left (4 a c - b^{2}\right )}\right ) + 2 a e + 3 b^{2} \left (\frac {e}{6 c} - \frac {\sqrt {- 4 a c + b^{2}} \left (b e - 2 c d\right )}{6 c \left (4 a c - b^{2}\right )}\right ) - b d}{b e - 2 c d} \right )} + \left (\frac {e}{6 c} + \frac {\sqrt {- 4 a c + b^{2}} \left (b e - 2 c d\right )}{6 c \left (4 a c - b^{2}\right )}\right ) \log {\left (x^{3} + \frac {- 12 a c \left (\frac {e}{6 c} + \frac {\sqrt {- 4 a c + b^{2}} \left (b e - 2 c d\right )}{6 c \left (4 a c - b^{2}\right )}\right ) + 2 a e + 3 b^{2} \left (\frac {e}{6 c} + \frac {\sqrt {- 4 a c + b^{2}} \left (b e - 2 c d\right )}{6 c \left (4 a c - b^{2}\right )}\right ) - b d}{b e - 2 c d} \right )} \]
[In]
[Out]
Exception generated. \[ \int \frac {x^2 \left (d+e x^3\right )}{a+b x^3+c x^6} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
none
Time = 0.43 (sec) , antiderivative size = 68, normalized size of antiderivative = 0.94 \[ \int \frac {x^2 \left (d+e x^3\right )}{a+b x^3+c x^6} \, dx=\frac {e \log \left (c x^{6} + b x^{3} + a\right )}{6 \, c} + \frac {{\left (2 \, c d - b e\right )} \arctan \left (\frac {2 \, c x^{3} + b}{\sqrt {-b^{2} + 4 \, a c}}\right )}{3 \, \sqrt {-b^{2} + 4 \, a c} c} \]
[In]
[Out]
Time = 11.27 (sec) , antiderivative size = 1632, normalized size of antiderivative = 22.67 \[ \int \frac {x^2 \left (d+e x^3\right )}{a+b x^3+c x^6} \, dx=\text {Too large to display} \]
[In]
[Out]